#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START elfutils
# depends: xz
# depends: zlib

reset_mtime elfutils elfutils/configure.ac
rm -rf build/elfutils
mkdir -p build/elfutils
cd build/elfutils
env LIBS="-llzma -lz" \
../../elfutils/configure \
	${CONFIGURE_ARGS} \
	--disable-debuginfod \
	--disable-libdebuginfod \
	--program-prefix=eu- \
	ac_cv_search_lzma_auto_decoder=-llzma \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/elfutils

# RECIPE END elfutils
